package com.cbw.blog.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2022-09-05
 */
@TableName("t_article")
@ToString
@Data
public class Article implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章具体内容
     */
    private String content;

    /**
     * 发表时间
     */
    private Date created;

    /**
     * 修改时间
     */
    private Date modified;

    /**
     * 文章分类
     */
    private String categories;

    /**
     * 文章标签
     */
    private String tags;

    /**
     * 是否允许评论
     */
    private Boolean allowComment;

    /**
     * 文章缩略图
     */
    private String thumbnail;


    @TableField(exist = false)
    private Integer hits;

    @TableField(exist = false)
    private Integer commentsNum;

}
